Skip to content

⭐ Add support for additional operating systems to rsyslog resource#6661

Merged
tas50 merged 1 commit intomainfrom
tas50/rsyslog
Mar 1, 2026
Merged

⭐ Add support for additional operating systems to rsyslog resource#6661
tas50 merged 1 commit intomainfrom
tas50/rsyslog

Conversation

@tas50
Copy link
Copy Markdown
Member

@tas50 tas50 commented Feb 22, 2026

Make sure this works outside Linux

@tas50 tas50 changed the title Add support for additional operating systems to rsyslog resource ⭐ Add support for additional operating systems to rsyslog resource Feb 22, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 22, 2026

Test Results

5 130 tests   5 126 ✅  1m 59s ⏱️
  409 suites      4 💤
   31 files        0 ❌

Results for commit b2bbe01.

♻️ This comment has been updated with latest results.

Copy link
Copy Markdown

@mondoo-code-review mondoo-code-review bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing test helper functions will cause compilation failure

Make sure this works outside Linux

Signed-off-by: Tim Smith <tsmith84@gmail.com>
@tas50
Copy link
Copy Markdown
Member Author

tas50 commented Feb 28, 2026

/review

@mondoo-code-review mondoo-code-review bot dismissed their stale review February 28, 2026 20:41

Superseded by new review

Copy link
Copy Markdown

@mondoo-code-review mondoo-code-review bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean implementation with good test coverage for BSD rsyslog paths.

Comment on lines +36 to +39
t.Run("nil platform", func(t *testing.T) {
conn := &mockConn{asset: &inventory.Asset{}}
assert.Equal(t, "/etc/rsyslog.conf", rsyslogConfPath(conn))
})
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 suggestion — You test nil Platform but not nil Asset. Consider adding a case with &mockConn{asset: nil} to cover the asset != nil guard in rsyslogConfPath.

@tas50 tas50 merged commit 517900f into main Mar 1, 2026
29 of 30 checks passed
@tas50 tas50 deleted the tas50/rsyslog branch March 1, 2026 14:37
@github-actions github-actions bot locked and limited conversation to collaborators Mar 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant